package com.hashwolf.newpipe.error;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.os.Bundle;

//import com.hashwolf.newpipe.databinding.ActivityMainBinding;

import com.hashwolf.newpipe.databinding.ActivityErrorBinding;

import java.time.format.DateTimeFormatter;

/**
 * 这个activity用来显示错误信息
 */
public class ErrorActivity extends AppCompatActivity {
    public static final String TAG = ErrorActivity.class.toString();

    public static final String ERROR_INFO = "error_info";
    public static final String ERROR_EMAIL_ADDRESS = "18368095041@163.com";
    public static final String ERROR_EMAIL_SUBJECT = "Exception in";

    public static final String ERROR_GITHUB_ISSUE_URL = "https://gitee.com/wu-shiyang541/newpipe-android/issues";

    public static final DateTimeFormatter CURRENT_TIMESTAMP_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:MM");

    private ErrorInfo errorInfo;
    private String currentTimeStamp;
    private ActivityErrorBinding activityErrorBinding;

    @Override
    protected void onCreate(final Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        activityErrorBinding = ActivityErrorBinding.inflate(getLayoutInflater());
        setContentView(activityErrorBinding.getRoot());
    }
}
